package com.xdb.sqlparser.dialect.oracle.ast.statement;

import java.util.ArrayList;
import java.util.List;

import com.xdb.sqlparser.ast.SQLExpr;
import com.xdb.sqlparser.ast.SQLName;
import com.xdb.sqlparser.dialect.oracle.visitor.OracleASTVisitor;

public class OracleFetchStatement extends OracleStatementImpl {

	private SQLName cursorName;

	private List<SQLExpr> into = new ArrayList<SQLExpr>();

	@Override
	public void accept0(OracleASTVisitor visitor) {
		if (visitor.visit(this)) {
			acceptChild(visitor, cursorName);
			acceptChild(visitor, into);
		}
		visitor.endVisit(this);
	}

	public SQLName getCursorName() {
		return cursorName;
	}

	public void setCursorName(SQLName cursorName) {
		this.cursorName = cursorName;
	}

	public List<SQLExpr> getInto() {
		return into;
	}

	public void setInto(List<SQLExpr> into) {
		this.into = into;
	}

}
